<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
							<button shiro:hasPermission="shop:product:add" type="button" class="btn  btn-primary" onclick="add()">
								<i class="fa fa-plus" aria-hidden="true"></i>添加
							</button>
							<button shiro:hasPermission="shop:product:batchRemove" type="button" class="btn  btn-danger"
								onclick="batchRemove()">
								<i class="fa fa-trash" aria-hidden="true"></i>删除
							</button>
							<button type="button" class="btn  btn-success"
								onclick="refresh()">
								<i class="glyphicon glyphicon-refresh icon-refresh" aria-hidden="true"></i>刷新
							</button>
						</div>
						<div class="columns pull-right">
							<button class="btn btn-success" onclick="reLoad()">查询</button>
						</div>
						<div class="columns pull-right col-md-2 nopadding">
							<input id="searchName" type="text" class="form-control" placeholder="名称" onkeypress="getKey();">
						</div>
						<div class="columns pull-right col-md-2 nopadding">
							<input id="searchNumber" type="text" class="form-control" placeholder="编号" onkeypress="getKey();">
						</div>
					</div>
					<table id="exampleTable" data-mobile-responsive="true" class="table text-nowrap">
					</table>
				</div>
			</div>
		</div>
	</div>
	<!--shiro控制bootstraptable行内按钮看见性 来自ouheng的创新方案 -->
		<div>
			<script type="text/javascript">
				var s_property_h = 'hidden';
				var s_price_h = 'hidden';
				var s_relevance_h = 'hidden';
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
				var s_resetPwd_h = 'hidden';
				var s_image_h = 'hidden';
				var s_size_h = 'hidden';
				var s_color_h = 'hidden';
				var s_prorelevance_h = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="shop:productProperty:productProperty">
			<script type="text/javascript">
				s_property_h = '';
			</script>
		</div>
		<div shiro:hasPermission="shop:productPrice:productPrice">
			<script type="text/javascript">
				s_price_h = '';
			</script>
		</div>
		<div shiro:hasPermission="shop:productSize:productSize">
			<script type="text/javascript">
				s_size_h = '';
			</script>
		</div>
		<div shiro:hasPermission="shop:productColor:productColor">
			<script type="text/javascript">
				s_color_h = '';
			</script>
		</div>
		<div shiro:hasPermission="shop:product:prorelevance">
			<script type="text/javascript">
				s_prorelevance_h = '';
			</script>
		</div>
		<div shiro:hasPermission="shop:product:relevance">
			<script type="text/javascript">
				s_relevance_h = '';
			</script>
		</div>
		<div shiro:hasPermission="shop:product:edit">
			<script type="text/javascript">
				s_edit_h = '';
			</script>
		</div>
		<div shiro:hasPermission="shop:product:remove">
			<script type="text/javascript">
				var s_remove_h = '';
			</script>
		</div>
		<div shiro:hasPermission="shop:product:resetPwd">
			<script type="text/javascript">
				var s_resetPwd_h = '';
			</script>
		</div>
		<div shiro:hasPermission="shop:product:image">
			<script type="text/javascript">
				s_image_h = '';
			</script>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" src="/js/appjs/shop/product/product.js"></script>
</body>
</html>